package com.zyy.meetObject3;

public class EatableTest {
    public static void main(String[] args) {
        Eatable[] eatables = new Eatable[3];
        eatables[0] = new Chinese();
        eatables[1] = new American();
        eatables[2] = new Indian();
        for(int i = 0; i < 3; i++){
            eatables[i].eat();
        }
    }
}
